#import "RNSheetHeaderView.h"

static NSGradient *RNSheetHeaderBackgroundGradient;
static NSColor *RNSheetHeaderBorderColor;

@implementation RNSheetHeaderView

+(void)initialize {
    NSColor *startingColor = [NSColor colorWithCalibratedWhite:0.655 alpha:1.0];
    NSColor *endingColor = [NSColor colorWithCalibratedWhite:0.796 alpha:1.0];
    RNSheetHeaderBackgroundGradient = [[NSGradient alloc] initWithStartingColor:startingColor endingColor:endingColor];
    RNSheetHeaderBorderColor = [NSColor colorWithCalibratedWhite:0.1f alpha:1.0f];
}
- (void)drawRect:(NSRect)dirtyRect {
    NSRect bounds = [self bounds];
    [RNSheetHeaderBackgroundGradient drawInRect:bounds angle:90.0f];
    [RNSheetHeaderBorderColor setStroke];
    [NSBezierPath strokeLineFromPoint:bounds.origin toPoint:NSMakePoint(NSMaxX(bounds), NSMinY(bounds))];
}

@end
